package com.example.opengldemo.bullet;

import android.content.res.AssetManager;
import android.opengl.GLSurfaceView;



import java.lang.String;;
public class JNIPort 
{
    static 
    {
        System.loadLibrary("BNbullet");
    }
    public static BasketBulletActivity hba;
//	public static native float calJNI();
    public static native void step();
    public static native void onSurfaceChanged(int width,int height);
    public static native void onSurfaceCreated(GLSurfaceView gsv);
    public static native void nativeSetAssetManager(AssetManager am);
    
    public static native void sendWidthAndHeight(float width,float height);

    public static native void onTouchBegan(float touchX,float touchY);
    public static native void onTouchMoved(float touchX,float touchY);
    public static native void onTouchEnded(float touchX,float touchY);
    
    public static native void toMenuView();
    public static native void sendSDCardPath(String SDCardPathin);
    public static native void setJNIEnv();
    static void NDKCallExit()
    {   
    	System.out.println("EXIT SUCCESS!!!");
    	System.exit(0);
    }

    static void shengyinBoFang(int sound,int loop)
    {
    	System.out.println("shengyinBoFang!!!"+sound+"::"+loop);
    	hba.shengyinBoFang(sound, loop);
    }
    static void playBackMusic(int flag)
    {
    	System.out.println("playBackMusic = flag = " + flag);
    	if(flag != 0){
    		hba.beijingyinyue.start();
    	}
    }
    static void recordCurrViewIndex(int currViewIn)
    {
    	Constant.VIEW_CUR_GL_INDEX = currViewIn;
    	System.out.println("currView = "+Constant.VIEW_CUR_GL_INDEX);
    }
}
